package cz.vargagab.repo;

import java.util.Map;

import cz.vargagab.domain.ClientRmiNode;
import cz.vargagab.domain.RmiNode;

/**
 * Interface that the clients can use for calling the server via RMI
 * @author Gabriel Varga
 *
 */
public interface ExternalServerService {
	
	public void testConnection ();

	public void login (ClientRmiNode node);
	
	public void logout (ClientRmiNode node);

	public int readData (String name);
	
	public void writeData (String name, int data);
	
	public Map<String,RmiNode> mapOfNodes();
	
}
